#pragma once
#include <Windows.h>

class CFPSDetector
{
public:
	CFPSDetector(void);
	~CFPSDetector(void);

	float CalcSeconds(float frames);
	//float CalcFPS(float frames);
	void Start();
	void End();
	float GetFPS();

private:
	LARGE_INTEGER m_StartTime;
	LARGE_INTEGER m_EndTime;
	LARGE_INTEGER m_ClockSpeed;
	//LARGE_INTEGER m_PrevTime;
	float seconds;
	float FPS;
	float timedif;
};


